using Digitalmes.Common.Cache;
using Digitalmes.Common;
using Digitalmes.ApiService.Hubs;

namespace Digitalmes.ApiService.Controllers;

/// <summary>
/// 在线用户
/// </summary>
public sealed class OnLineController : ApiController
{
    [HttpGet]
    public List<ClientUser> Get()
    {
        return RedisService.Instance.Get<List<ClientUser>>(AppConsts.ONLINEUSERS) ?? new();
    }
}
